<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center myDeposit_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub myDeposit_fd0_0'>
          <view class='flex flex-wrap align-center myDeposit_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  myDeposit_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='myDeposit_fd0_0_c1_c0'>我的押金</text>
          </view>
          <view class='flex flex-wrap align-center justify-end myDeposit_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myDeposit_flex_1">
          <view class='flex flex-wrap align-center myDeposit_fd1_0'
            @tap.stop="determinePayFunc('3',depositList.big_pledge,depositList.big_pay)">
            <text class='myDeposit_fd1_0_c0'>大型农具</text>
            <text class='myDeposit_fd1_0_c1'>(押金</text>
            <text class='myDeposit_fd1_0_c1'>{{depositList.big_pledge}}</text>
            <text class='myDeposit_fd1_0_c1'>元)</text>
            <text class='myDeposit_fd1_0_c4' v-if=" depositList.big_pay==''">未缴纳</text><text class='myDeposit_fd1_0_c4_1'
              v-if=" depositList.big_pay!=''">已缴纳</text>
            <image class='myDeposit_fd1_0_c5' mode="aspectFit" :src='STATIC_URL+"63.png"' v-if="  depositList.big_pay==''">
            </image>
            <image class='myDeposit_fd1_0_c5' mode="aspectFit" :src='STATIC_URL+"14.png"' v-if="  depositList.big_pay!=''">
            </image>
          </view>
          <view class='flex flex-wrap align-center myDeposit_fd1_0'
            @tap.stop="determinePayFunc('2',depositList.middle_pledge,depositList.middle_pay)">
            <text class='myDeposit_fd1_0_c0'>中型农具</text>
            <text class='myDeposit_fd1_0_c1'>(押金</text>
            <text class='myDeposit_fd1_0_c1'>{{depositList.middle_pledge}}</text>
            <text class='myDeposit_fd1_0_c1'>元)</text>
            <text class='myDeposit_fd1_0_c4' v-if=" depositList.middle_pay==''">未缴纳</text><text class='myDeposit_fd1_0_c4_1'
              v-if=" depositList.middle_pay!=''">已缴纳</text>
            <image class='myDeposit_fd1_0_c5' mode="aspectFit" :src='STATIC_URL+"63.png"' v-if="  depositList.middle_pay==''">
            </image>
            <image class='myDeposit_fd1_0_c5' mode="aspectFit" :src='STATIC_URL+"14.png"' v-if="  depositList.middle_pay!=''">
            </image>
          </view>
          <view class='flex flex-wrap align-center myDeposit_fd1_0'
            @tap.stop="determinePayFunc('1',depositList.small_pledge,depositList.small_pay)">
            <text class='myDeposit_fd1_0_c0'>小型农具</text>
            <text class='myDeposit_fd1_0_c1'>(押金</text>
            <text class='myDeposit_fd1_0_c1'>{{depositList.small_pledge}}</text>
            <text class='myDeposit_fd1_0_c1'>元)</text>
            <text class='myDeposit_fd1_0_c4' v-if=" depositList.small_pay==''">未缴纳</text><text class='myDeposit_fd1_0_c4_1'
              v-if=" depositList.small_pay!=''">已缴纳</text>
            <image class='myDeposit_fd1_0_c5' mode="aspectFit" :src='STATIC_URL+"63.png"' v-if="  depositList.small_pay==''">
            </image>
            <image class='myDeposit_fd1_0_c5' mode="aspectFit" :src='STATIC_URL+"14.png"' v-if="  depositList.small_pay!=''">
            </image>
          </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "depositList": []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.getDepositlsitFunc()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {
      this.getDepositlsitFunc()
    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取押金列表
      async getDepositlsitFunc() {
        //请求方法
        //数据验证

        let datadepositList = await this.$api.post(global.apiUrls.post6528d9229aaf8, {

        });

        if (datadepositList.data.code != 1) {
          this.$message.info(datadepositList.data.msg);
          return
        }
        let infodepositList = datadepositList.data;
        this.depositList = infodepositList.data
      },
      //判断是否缴纳
      determinePayFunc(type,price, state) {
        if (state == '') {
          this.$urouter.navigateTo(`/pages/my/farmTools/farmTools?id=${type}&price=${price}`);
        } else if (state != '') {
          this.$urouter.navigateTo(`/pages/my/mediumagriculturaltools/mediumagriculturaltools?id=${type}&price=${price}`);
        }
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor0);
    background-size: 100% auto;
  }

  .myDeposit_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .myDeposit_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333;
    line-height: 88rpx;
  }

  .myDeposit_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .myDeposit_fd0_0_c0 {
    width: 120rpx;
  }

  .myDeposit_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .myDeposit_flex_1 {
    background: var(--benbenbgColor1);
    background-size: 100% auto;
  }

  .myDeposit_fd1_0_c5 {
    width: 40rpx;
    height: 40rpx;
  }

  .myDeposit_fd1_0_c4_1 {
    margin: 0rpx 0rpx 0rpx auto;

    color: #999;
    font-size: 32rpx;
    font-weight: 400;
  }

  .myDeposit_fd1_0_c4 {
    margin: 0rpx 0rpx 0rpx auto;

    color: #E63838;
    font-size: 32rpx;
    font-weight: 400;
  }

  .myDeposit_fd1_0_c1 {
    color: #E63838;
    font-size: 26rpx;
    font-weight: 400;
    line-height: 44rpx;
    height: 32rpx;
  }

  .myDeposit_fd1_0_c0 {
    color: var(--benbenFontColor0);
    font-size: 32rpx;
    font-weight: 400;
  }

  .myDeposit_fd1_0 {
    border-bottom: 1px solid #eee;
    margin: 0rpx 24rpx 0rpx 24rpx;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }
</style>
